package com.learn.educourseboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 课节视频表
 * </p>
 *
 * @author m
 * @since 2022-04-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="CourseMedia对象", description="课节视频表")
public class CourseMedia implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "课程媒体主键ID")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "课程Id")
    private Integer courseId;

    @ApiModelProperty(value = "章ID")
    private Integer sectionId;

    @ApiModelProperty(value = "课时ID")
    private Integer lessonId;

    @ApiModelProperty(value = "封面图URL")
    private String coverImageUrl;

    @ApiModelProperty(value = "时长（06:02）")
    private String duration;

    @ApiModelProperty(value = "媒体资源文件对应的EDK")
    private String fileEdk;

    @ApiModelProperty(value = "文件大小MB")
    private Double fileSize;

    @ApiModelProperty(value = "文件名称")
    private String fileName;

    @ApiModelProperty(value = "媒体资源文件对应的DK")
    private String fileDk;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除，0未删除，1删除")
    @TableField("is_del")
    private Boolean del;

    @ApiModelProperty(value = "时长，秒数（主要用于音频在H5控件中使用）")
    private Integer durationNum;

    @ApiModelProperty(value = "媒体资源文件ID")
    private String fileId;


}
